/**
 * Provides requestAnimationFrame in a cross browser way.
 * http://paulirish.com/2011/requestanimationframe-for-smart-animating/
 */

if ( !window.requestAnimationFrame ) {
    console.log('requestAnimationFrame not found!');
    window.requestAnimationFrame = ( function() {
	return window.webkitRequestAnimationFrame ||
	    window.mozRequestAnimationFrame ||
	    window.oRequestAnimationFrame ||
	    window.msRequestAnimationFrame ||
	    function( /* function FrameRequestCallback */ callback, /*DOMElement Element */ element ) {
                console.log('using window timeout...');
		window.setTimeout( callback, 1000 / 60 );
	    };
    } )();
}
